<template>
  <div id="app">
    <el-container>
      <el-header>
        <h1>设备监控系统</h1>
      </el-header>
      <el-main>
        <el-row :gutter="20">
          <el-col :span="8">
           <TemperatureSensor deviceId="iot-test-box-001" title="温度传感器" />
          </el-col>
          <el-col :span="8">
           <LedLight deviceId="iot-test-box-001" title="LED灯" />
          </el-col>
          <el-col :span="8">
            <ServoControl deviceId="iot-test-box-001" title="舵机控制" />
          </el-col>
          <el-col :span="8">
            <BarometricPressureSensor deviceId="iot-test-box-001" title="大气压传感器" />
          </el-col>
        </el-row>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import TemperatureSensor from './components/TemperatureSensor.vue'
import LedLight from './components/LedLight.vue'
import ServoControl from './components/ServoControl.vue'
import BarometricPressureSensor from './components/BarometricPressureSensor.vue'

export default {
  name: 'App',
  components: {
    TemperatureSensor,
    LedLight,
    ServoControl,
    BarometricPressureSensor
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

.el-header {
  background-color: #409eff;
  color: white;
  line-height: 60px;
}

.el-main {
  padding: 20px;
}
</style>